From: Philip L. McMahon Date: Sat, 27 Mar 2021 09:06:42 +0000 (+0200) Subject: luci-app-statistics: remove rrd path triple escape X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=b60b8380279f575e0c19aad12dfd0ea24852692f;p=project%2Fluci.git luci-app-statistics: remove rrd path triple escape Fixes rendering errors when RRD file names contain IPv6 addresses and the colon (":") characters are triple escaped. Adapts the Lua-specific fix in #4340 to Javascript. Signed-off-by: Philip L. McMahon (cherry picked from commit d44302b3ac7a5f687c4a2bb6707cc3d922651f82 of PR #4358) --- diff --git a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js index 322eee137c..19e34e4bc6 100644 --- a/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js +++ b/applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js @@ -376,7 +376,7 @@ return baseclass.extend({ function __def(source) { var inst = source.sname, - rrd = source.rrd.replace(/[\\:]/g, '\\$&'), + rrd = source.rrd, ds = source.ds || 'value'; _args.push(